#include "etextwindow.h"

eTextWindow::eTextWindow(int w,int h) : Fl_Double_Window(800,600)
{
    code=new Fl_Multiline_Input(20,20,w-40,h-40);
    kapat=new Fl_Button(w-20,0,20,20,"X");
    kapat->callback(kapat_CB,this);
    set_modal();
    this->box(FL_NO_BOX);
    box(FL_NO_BOX);
}

eTextWindow::~eTextWindow()
{
    //dtor
}
void eTextWindow::kapat_CB(Fl_Widget *p,void *userdata)
{
    eTextWindow *gecici=(eTextWindow *)userdata;
    gecici->kapat_CB2(p);
}
void eTextWindow::kapat_CB2(Fl_Widget *p)
{
    this->hide();
}
Fl_Multiline_Input *eTextWindow::codeal()
{
    return code;
}
